package com.bbx.taxi.client.Task;

import android.app.Activity;

import com.bbx.api.sdk.model.passanger.LeadStopsGetNearbysBuild;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.passeger.conn.ActivityNet;
import com.bbx.api.sdk.net.passeger.conn.LeadStopsGetNearbysNet;
import com.bbx.taxi.client.Bean.Attribute.MainAttribute;
import com.bbx.taxi.client.Bean.Extra.AddressMsg;
import com.bbx.taxi.client.Bean.Message.ObserverListener.DATA_TYPE;
import com.bbx.taxi.client.Util.DateFormat;

/** 
 * @Path com.bbx.taxi.client.Task.MyTuiJianTask.java
 * @Author 严旭文
 * @Date 2016-9-20 上午11:07:13
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 */
public class MyTuiJianTask extends BaseTask{
	public DATA_TYPE TYPE=DATA_TYPE.TUIJIAN;
	LeadStopsGetNearbysBuild build;
    ActivityNet mActivityNet;
    public String city;
	public MyTuiJianTask(Activity context,String lat,String lng,boolean isCity) {
		super(context);
		LeadStopsGetNearbysBuild build=new LeadStopsGetNearbysBuild(context);
		build.lat=lat;
		build.lng=lng;
		build.time=DateFormat.onDate_Long(MainAttribute.getInstance().getTime(isCity))/ 1000;
        this.build=build;
	}
	@Override
	public boolean isShow() {
		return false;
	}
	@Override
	public boolean isReturnString() {
		return false;
	}
	@Override
	public boolean condition() {
		// TODO Auto-generated method stub
		return true;
	}
	public void request() {
		setType(TYPE,build);
	}
	@Override
	public void success(int status,Object object) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void failed(int status, String msg,String message) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public BaseNetwork getBaseNetwork() {
		return new LeadStopsGetNearbysNet(context);
	}
}
